/** <a href="http://www.cpupk.com/decompiler">Eclipse Class Decompiler</a> plugin, Copyright (c) 2017 Chen Chao. **/
package com.asiainfo.utils.sql.sqlbuilder.select;

import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;

public abstract class RowMapper<E> {
	public abstract E convert(ResultSet paramResultSet, int paramInt) throws SQLException;

	protected boolean contains(ResultSet resultSet, String columnName) throws SQLException {
		ResultSetMetaData metaData = resultSet.getMetaData();
		for (int i = 1; i <= metaData.getColumnCount(); ++i) {
			String metaDataColumnName = metaData.getColumnLabel(i);
			if (columnName.equalsIgnoreCase(metaDataColumnName)) {
				return true;
			}
		}
		return false;
	}
}